**********************************************************************************
Shooting a Moving Target: Evaluating Targeting Tools for Social Programs When 
Income Fluctuates

Published in the Journal of Development Economics. 

Authors, in alphabetical order:
1. Diether W. Beuermann, Inter-American Development Bank
2. Bridget Hoffmann, Inter-American Development Bank
3. Marco Stampini, Inter-American Development Bank
4. David L. Vargas, University of California, San Diego
5. Diego Vera-Cossio, Inter-American Development Bank

**********************************************************************************

This folder contains the replication files for the paper.

********************************
**           Contents         **
********************************

****************
* 1. 01_Codes *
****************
Contains all Stata do-files needed to replicate tables and figures
   - One do-file per table/figure
   - 0_Master_analysis.do: Master file that sets paths and runs all analyses

** Important note **: Due to the anonymisation process, and the ways Stata sorts 
the data, some extremely small differences may appear on the tables compared to those 
in the published paper.  

****************
* 2. 02_Data  *
****************
Contains all datasets needed for replication

** Important note **: Admin data is restricted access. So, you will not be able to run the 
whole code, and some sections will be skipped. Because of this, you will not be able to fully 
replicate the datasets used in the analysis; however, you'll get a close replica of the ones
used in the paper. An anonymised version of the datasets used in the analysis is provided in 
the replication package, so you can still run all the analysis codes and replicate the results 
(except for Table A1 which uses admin data). 

   *** Subfolders:

   - 01_Codes: Contains all Stata do-files needed to replicate the data construction
     - 0_Master_data.do: Master file that sets paths and runs all the data construction codes
   - 01_Rawdata: Original raw data files
      - survey_data: Original survey data files (anonymised)
      - admin_data: Administrative data is restricted. Not provided.
      - _aux: Original auxiliary sources data files (anonymised)
   - 02_Cleandata: Processed and cleaned datasets
      - 01_survey: Processed and cleaned surveys
         - survey_targeting_r1.dta: Main survey dataset
         - survey_targeting_r1_long.dta: Long version of the main survey dataset
         - replica: Replicated datasets from the codes provided in the 01_Codes folder
      - 02_admin: Administrative data is restricted. Not provided.
      - 03_auxiliar: Processed and cleaned auxiliary sources data and supporting datasets 
      created in the 01_Codes folder
     
****************
* 3. 03_Output *
****************
Contains all generated outputs from the analysis
   - 01_Tables: Generated tables
   - 02_Graphs: Generated graphs


******************************************************************************************
Computational Environment:
- Operating System Used: MacOS 15.0 (24A335)
- Statistical Software: Stata 17 MP
- Additional Stata packages: gtools, icw_index, outreg2, winsor2, binscatter 
  (Install via "ssc install [package_name]")
******************************************************************************************
*** END *** END *** END *** END *** END *** END *** END *** END *** END *** END *** END ***




 


